package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.SysUserAccount;
import com.ruoyi.system.mapper.SysUserAccountMapper;
import com.ruoyi.system.service.ISysUserAccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SysUserAccountServiceImpl implements ISysUserAccountService {

    @Resource
    private SysUserAccountMapper sysUserAccountMapper;

    @Override
    public List<SysUserAccount> selectPageList(SysUserAccount sysUserAccount) {
        return sysUserAccountMapper.selectSysUserAccountList(sysUserAccount);
    }

    @Override
    public AjaxResult shutDown(String account) {
         sysUserAccountMapper.shutDown(account);
         return AjaxResult.success("解绑成功.");
    }
}
